<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MvcEngineModelList<Site>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>
        <%= Model.Localize("SiteSettingPageTitle")%></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="pageActions">
    </div>
    <h1>
        <%= Model.Localize("SiteSettingPageTitle")%>
    </h1>
    <%= Html.Grid(Model.List).Columns(column =>
{
    column.For(x => Html.UrlActionLink("Edit", Url.EditSite(x.Id))).DoNotEncode();
    column.For(x => x.Name).Named(Model.Localize("NameColumn"));
    column.For(x => x.Description);
    column.For(x => x.CreatedDate).Format("{0:d}");
    column.For(x => x.ModifiedDate).Format("{0:d}");
}).Attributes(cellSpacing => "0", cellPadding => "0", border => "0")%>
</asp:Content>
